package com.test.util;


import com.test.code.BusinessErrorCode;
import com.test.expection.MyException;

public class Assert {
    public static void throwException(Boolean condition,
                                      BusinessErrorCode code){
        if(condition==true){
            throw new MyException(code);
        }
    }
}
